﻿using System.ComponentModel.DataAnnotations;
using System.Reflection.Metadata;

namespace Api.Model
{
    public class User : IPeople
    {
        [Key] // 这里使用 Key 特性标记主键
        public int id { set; get; }
        public string? name { set; get; }
        //public Blob image { set; get; }
        public string? password { set; get; }
        public string? phone {  set; get; }
        public string? email { set; get; }
        public string? address { set; get; }


        public Guid? Token { get; set; }

        public bool? isForbidden { set; get; }

        public string? userIcon { set; get; }
        public User()
        {
            //image = new Blob();
            id = -1;
            name = "N/A";
            phone = "N/A";
            email = "N/A";
            address = "N/A";
            Token = null;
            password = "N/A";
            isForbidden = false;
            userIcon = "images/person/userImg.jpg";
        }
    }
}
